WooCommerce\Square\Handlers\Product D

Total Complexity 185
Dependencies 18
Dependents 13
Total lines 1,388
Lines of code 674
Logical lines of code 325
Comment lines 399
Methods 43
Properties 0

Methods 43

Method Rating Maintainability Complexity Lines of code
update_from_square()
B
37 19 70
update_image_from_square()
A
43 15 42
get_square_meta()
A
42 12 50
update_stock_from_square()
A
51 10 24
convert_to_catalog_object()
A
47 9 35
extract_catalog_item_variation_data()
A
48 7 32
update_square_meta()
S
55 7 21
set_synced_with_square()
S
55 7 18
extract_catalog_item_data()
S
49 6 31
has_multiple_variation_attributes()
S
58 6 15
has_sku()
S
60 6 12
get_inventory_change_adjustment_type()
S
50 4 29
is_synced_with_square()
S
61 5 11
get_products_synced_status()
S
51 4 25
get_square_item_id()
S
62 5 10
get_square_item_variation_id()
S
62 5 10
import_remote_meta()
S
61 3 13
clear_square_meta()
S
54 2 21
get_inventory_change_physical_count_type()
S
55 2 20
set_square_image_id()
S
67 3 7
get_square_image_id()
S
64 3 10
set_square_variation_version()
S
67 3 7
get_square_variation_version()
S
67 3 7
set_square_version()
S
67 3 7
get_square_version()
S
67 3 7
set_square_item_variation_id()
S
67 3 7
update_product()
S
64 3 9
set_square_item_id()
S
67 3 7
update_variation()
S
65 3 8
get_product_by_square_id()
S
68 3 7
can_sync_with_square()
S
67 3 7
get_square_meta_single()
S
63 2 11
get_product_id_by_square_id()
S
61 1 15
get_product_by_square_variation_id()
S
69 2 7
get_product_id_by_square_variation_id()
S
61 1 15
is_mapped()
S
73 2 4
init_taxonomies()
S
61 1 14
get_parent_product_id_by_variation_id()
S
63 1 14
price_to_money()
S
79 1 3
get_products_synced_with_square()
S
79 1 3
get_products_not_synced_with_square()
S
79 1 3
get_product_edit_link()
S
77 1 3
unset_synced_with_square()
S
78 1 3